package com.hugeyurt.util;

import com.hugeyurt.service.CourseService;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SkillTask
{
    @Resource
    private CourseService courseService;

    @Scheduled(fixedRate=1000)
  // @Scheduled(cron="")
    public void startKillTask()
    {
       if(courseService.initSkillEvent())
       {
           System.out.println("选课开始了。。。");
       }
   //    else
        //  system.out.println("选课还没有开始。。。");
    }



}
